package com.xdu.service;

import com.xdu.dto.EmployeeDTO;
import com.xdu.dto.EmployeeLoginDTO;
import com.xdu.dto.EmployeePageQueryDTO;
import com.xdu.entity.Employee;
import com.xdu.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);
//新增员工
    void save(EmployeeDTO employeeDTO);

    /**
     * 分页查询方法
     * @param employeePageQueryDTO
     * @return
     */
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    void updateStatus(Integer status, Long id);

    Employee getById(Long id);

    void update(EmployeeDTO employeeDTO);
}
